package main

import (
	"administrator/app"
	"administrator/app/controllers/user"
	"fmt"
	"gitee.com/aurora-engine/aurora"
	"os"
	"os/signal"
	"syscall"
)

func main() {
	user.InitMsg()
	go func() {
		if err := aurora.Run(&app.AdministratorServer{Engine: aurora.New(opts...)}); err != nil {
			panic(err)
		}
	}()
	signals := make(chan os.Signal, 1)
	signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
	select {
	case s := <-signals:
		fmt.Println(s.String())
	}
}
